function regular(phone){
    var regphone =/^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
    if(regphone.test(phone)){
        return true
    }else{
        return false
    }
}
function identity(phone){
    var regphone =/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/
    if(regphone.test(phone)){
        return true
    }else{
        return false
    }
}
function Regpassword(password){
    var Regpass =/^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{8,}$/

    if(Regpass.test(password)){
        return true
    }else{
        return false
    }
}
export default {
    regular,identity,Regpassword
}